package com.hiwhitley.easy.day01;

/**
 * Created by hiwhitley on 2016/5/23.
 */
public class TestDemo {
    public static void main(String[] args) {
        MyStack1 stack1 = new MyStack1();
        stack1.push(3);
        stack1.push(4);
        stack1.push(5);
        stack1.push(1);
        stack1.push(2);
        stack1.push(1);

        System.out.println(stack1.getMin());
        System.out.println(stack1);
        stack1.pop();
        stack1.pop();
        stack1.pop();
        System.out.println(stack1.getMin());
        System.out.println(stack1);
        stack1.pop();
        System.out.println(stack1.getMin());
        System.out.println(stack1);

    }
}
